package com.xuanwei.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author mjy
 * @since 2019-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class XwOrderRefund implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 退款单号
     */
    @TableField("refund_no")
    private String refundNo;

    /**
     * 退款金额
     */
    @TableField("weixin_refund_no")
    private String weixinRefundNo;

    /**
     * 退款金额
     */
    @TableField("refund_amount")
    private BigDecimal refundAmount;

    /**
     * 理由
     */
    @TableField("reason")
    private String reason;


    /**
     * 之前订单状态
     */
    @TableField("order_before_status")
    private Integer orderBeforeStatus;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private Integer orderId;

    /**
     * 0申请退款1同意退款2拒绝退款3退款中4退款成功
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间(申请时间)
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 0正常1删除
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


}
